<%--
  Created by IntelliJ IDEA.
  User: ASUS
  Date: 2021/8/12
  Time: 9:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>Title</title>
    <meta charset="UTF-8">
    <script src="static/js/jquery-3.3.1.min.js" type="text/javascript"></script>
    <script src="static/js/config.js "type="text/javascript"></script>
   <link rel="stylesheet" type="text/css" href="static/css/login.css">
    <style>

    </style>
</head>
<body>
    <h2 style="position:absolute;top:30%;left: 48%">云日记</h2>
<div style="position: absolute;top: 40%;left: 42%;" class="container">
    <form action="user" method="post" id="loginForm">
        <%--        用户行为判断后端要用的方法--%>
        <input type="hidden" name="actionName" value="login"/>
        <span class="chara">用户名</span><input type="text" name="userName" id="userName" class="textin" placeholder="请输入用户名"/><br><br>
            <span class="chara">密码</span><input type="password" name="userPwd" id="userPwd"  class="textin" placeholder="请输入密码"/><br><br>
        <%--
            关于checkbox 的值
            checked 选中为true 未选中为false
            value 只有当选中时才会生效，默认value==on
            为选中时提交为null，不会提交该数据
        --%>
        <input type="checkbox" name="rem"  value="1" id="check"/><span style="font-size: 12px;display: inline-block;margin-left: 10px">？记住我</span>
        <span id="msg" style="color: #ff0000;font-size: 12px;display: inline-block" >${resultInfo.msg}</span><br><br>
        <input type="button" value="登录" onclick="checkLogin()" id="btn"/>
    </form>
</div>

</body>
</html>
